Skip to content

Commit cf37a2d

Browse files
authored
Merge branch 'master' into gui_coding_copyedit
2 parents fd366a2 + 807bebd commit cf37a2d

File tree

51 files changed

+1032
-641
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1032
-641
lines changed

doc/Editing-the-Wiki.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,42 @@ You can then add the image in markdown using the URL `test.png`:
100100

101101
![alternative text](test.png)
102102

103+
## Mermaid Diagrams
104+
Mermaid diagrams can be added using the following syntax (example):
105+
````
106+
```{mermaid}
107+
---
108+
title: Simple sample
109+
---
110+
stateDiagram-v2
111+
[*] --> Document
112+
Develop_software --> Document
113+
Document --> Develop_software
114+
Develop_software --> Test_software
115+
Test_software --> Crash
116+
Crash --> Develop_software
117+
Test_software --> [*]
118+
```
119+
````
120+
121+
will render as:
122+
```{mermaid}
123+
---
124+
title: Simple sample
125+
---
126+
stateDiagram-v2
127+
[*] --> Document
128+
Document --> Develop_software
129+
Develop_software --> Document
130+
Develop_software --> Test_software
131+
Test_software --> Crash
132+
Crash --> Develop_software
133+
Test_software --> [*]
134+
```
135+
136+
137+
The Mermaid syntax is documented [here](https://mermaid.js.org/intro/syntax-reference.html).
138+
103139
## Spellchecking
104140

105141
The wiki has a built-in spellchecker, which will automatically run when a commit

doc/Glossary.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ A method of changing the internal parameters of an emulator to mimic the behavio
3232

3333
Slits used on each of the Muon instruments to control the neutron flux to the sample. Each "jaw" pivots on one edge, much like a door on a hinge.
3434

35+
## BDD
36+
37+
Behaviour-driven development. See the [Agile Alliance definition of BDD](https://www.agilealliance.org/glossary/bdd/),
38+
and [how we use BDD for testing in Squish](/client/testing/System-Testing-with-Squish-BDD).
39+
3540
## Block
3641

3742
## Block Archive

doc/Providing-Support.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ There are a number of tips for [trouble shooting](#all_troubleshooting_links) al
132132
1. I can't use this button to get to more details/why doesn't this bit of the OPI work
133133
- Check they are in manager mode
134134
1. I need to add this device to my system
135-
- Check [the user manual](https://github.com/ISISComputingGroup/ibex_user_manual/wiki) for IBEX, for SECI, if you don't know already ask someone else
135+
- Check {external+ibex_user_manual:doc}`the user manual <index>` for IBEX, for SECI, if you don't know already ask someone else
136136
1. My motor won't move
137137
- Are both limits made?
138138
- Yes: Something has happened in the physical realm, refer it to EUSG via the MCR
@@ -178,7 +178,7 @@ There are a number of tips for [trouble shooting](#all_troubleshooting_links) al
178178
<summary>Script issues</summary>
179179

180180
1. My script won't load
181-
- If `g.load_script` is being used and you see errors of the form `E: 1: error description (error-name)`, these errors are coming from the linter. Detailed linter troubleshooting is available [here](https://github.com/ISISComputingGroup/ibex_user_manual/wiki/Error-Checking-Troubleshooting).
181+
- If `g.load_script` is being used and you see errors of the form `E: 1: error description (error-name)`, these errors are coming from the linter. Detailed linter troubleshooting is available {external+ibex_user_manual:doc}`here <scripting/Error-Checking-Troubleshooting>`.
182182
1. My script isn't behaving in the way I expect it to
183183
- This is a best efforts, and not everyone can provide the same level of support
184184
- Look at it with respect to basic coding standards and obvious race condition points

doc/_static/css/custom.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,16 @@ a:hover {
1212
.wy-nav-content {
1313
max-width: 1200px !important;
1414
}
15+
16+
@keyframes highlight {
17+
0% {
18+
background: #01afec;
19+
}
20+
100% {
21+
background: none;
22+
}
23+
}
24+
25+
:target {
26+
animation: highlight 3s;
27+
}

doc/client/testing/Adding-Unit-Tests.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,35 @@
11
# Adding tests
22

3-
For more detailed information see [an_introduction_to_unit_testing.rst](An-Introduction-to-Unit-Testing).
3+
:::{seealso}
4+
- [Introduction to unit testing](An-Introduction-to-Unit-Testing)
5+
:::
46

5-
It is relatively simple to add unit tests for a plug-in in such a way that maven can run them as part of the build.
6-
7-
Here are the steps required in Eclipse:
7+
The steps required to add unit tests for a plugin are:
88

99
* Create a new Fragment Project
1010
* File > New > Project... > Plug-in Development > Fragment Project
11-
* Set the project name to `\<the full name of the plug-in to test\>.tests`
12-
* Change the location to the repository rather than the workspace: `xxx\ibex_gui\base\\\<project_name>` (don't forget the project name!!)
11+
* Set the project name to `<the full name of the plug-in to test\>.tests`
12+
* Change the location to the repository rather than the workspace: `ibex_gui\base\<project_name>` (don't
13+
forget the project name!)
1314
* Click "Next"
14-
* Make sure the Execution Environment points at the correct version of Java (currently JavaSE-11)
15+
* Make sure the Execution Environment points at the correct version of Java
1516
* Click the "Browse" button next to "Plug-in ID"
1617
* Select the plug-in to test and click "OK"
1718
* Finish
1819

19-
* In the newly created plug-in, add a new Package with the same name as the plug-in or something equally sensible.
20+
* In the newly created plug-in, add a new Package with the same name or structure as the plug-in.
2021
* Select the plug-in
2122
* File > New > Package
2223
* Enter the name and click "Finish"
2324

2425
* In the new Package create a class for adding test
2526
* Select the Package
2627
* File > New > Class
27-
* The class name **must** end in Test to be picked up by the automated build
28+
* The class name **must** end with `Test` to be picked up by the automated build
2829

2930
* Add tests to the class
30-
* Add `org.junit` and `org.mockito` (if required) to the 'Required Plug-ins', under the Dependencies tab for the manifest
31+
* Add `org.junit` and `org.mockito` (if required) to the 'Required Plug-ins', under the Dependencies tab for the
32+
manifest (`MANIFEST.MF`)
3133

3234
* Add the test plug-in to the Maven build by [following these steps](../coding/Adding-a-Plugin-or-Feature-to-Maven-Build)
3335

0 commit comments

Comments
 (0)