Skip to content
This repository was archived by the owner on Nov 29, 2024. It is now read-only.

Commit 130bc84

Browse files
committed
work on more tests
1 parent b9c508e commit 130bc84

14 files changed

+658
-33
lines changed

TEST_COVERAGE.md

Lines changed: 43 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ To run the tests, run `pytest tests/` in the root directory of this repository.
1212

1313
Some methods need manual testing because they use a webcam. The following functions must be tested manually:
1414

15-
- [ ] `Breakpoint[]`
15+
- [X] `Breakpoint[]`
1616
- [X] `Compare[]`
1717
- [X] `GetFPS[]`
1818
- [X] `Show[]`
1919
- [X] `ShowText[]`
2020
- [X] `UseCamera[]`
21+
- [ ] `Deploy[]`
2122

2223
## Automated Testing
2324

@@ -29,23 +30,23 @@ Some methods need manual testing because they use a webcam. The following functi
2930
- [X] `Classify[]`
3031
- [X] `ComparePose[]`
3132
- [X] `Count[]`
32-
- [ ] `CountInRegion[]`
33-
- [ ] `Cutout[]`
33+
- [X] `CountInRegion[]`
34+
- [X] `Cutout[]`
3435
- [X] `Describe[]`
3536
- [X] `Detect[]`
3637
- [X] `DetectPose[]`
3738
- [X] `Exit[]`
38-
- [ ] `FilterByClass[]`
39+
- [X] `FilterByClass[]`
3940
- [X] `Find[]`
4041
- [X] `First[]`
41-
- [ ] `GetDistinctScenes[]`
42+
- [x] `GetDistinctScenes[]`
4243
- [X] `GetEdges[]`
4344
- [X] `GetText[]`
4445
- [X] `Greyscale[]`
4546
- [X] `If[]`
4647
- [X] `Import[]`
4748
- [X] `In[]` (folder of images)
48-
- [ ] `In[]` (video file)
49+
- [X] `In[]` (video file)
4950
- [X] `Input[]`
5051
- [X] `Last[]`
5152
- [X] `Load[]`
@@ -56,25 +57,55 @@ Some methods need manual testing because they use a webcam. The following functi
5657
- [X] `Random[]`
5758
- [X] `Read[]`
5859
- [X] `ReadQR[]`
59-
- [ ] `Replace[]`
60+
- [X] `Replace[]`
6061
- [X] `Reset[]`
6162
- [X] `Resize[]`
6263
- [X] `Rotate[]`
6364
- [X] `Save[]`
6465
- [X] `Say[]`
65-
- [ ] `Search[]`
66+
- [X] `Search[]`
6667
- [X] `Segment[]`
67-
- [ ] `Select[]`
68+
- [X] `Select[]`
6869
- [X] `SetBrightness[]`
69-
- [ ] `SetConfidence[]`
70+
- [X] `SetConfidence[]`
7071
- [X] `Similarity[]`
7172
- [X] `Size[]`
7273
- [X] `Use[]`
7374
- [X] `Profile[]`
74-
- [ ] `Web[]`
75+
- [X] `Web[]`
76+
- [ ] `Crop[]`
77+
- [ ] `Contains[]`
78+
- [ ] `Get[]`
79+
- [ ] `Set[]`
80+
- [ ] `Remove[]`
81+
- [ ] `Wait[]`
82+
- [ ] `Track[]`
83+
- [ ] `Remove[]`
84+
- [ ] `Apply[]`
85+
- [ ] `Grid[]`
86+
- [ ] `Shuffle[]`
87+
- [ ] `GetColors[]`
88+
- [ ] `GetColours[]`
89+
- [ ] `IsItA[]`
90+
- [ ] `Is[]`
91+
- [ ] `Merge[]`
92+
- [ ] `Say[]`
7593

7694
### Language Features
7795

7896
- [X] Increment
7997
- [X] Decrement
80-
- [X] Comment
98+
- [X] Comment
99+
- [X] Assignment
100+
- [ ] List
101+
- [ ] Associative array
102+
- [ ] Greater than
103+
- [ ] Less than
104+
- [ ] Greater than or equal to
105+
- [ ] Less than or equal to
106+
- [ ] Equal to
107+
- [ ] Not equal to
108+
109+
### Exceptions
110+
111+
- [X] `visionscript.errors.PathNotExists`

tests/.DS_Store

0 Bytes
Binary file not shown.
Binary file not shown.

tests/classify_image.vic

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/find_in_images.vic

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/images/.DS_Store

0 Bytes
Binary file not shown.

tests/load_detect_save.vic

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/manual_vics/breakpoint.vic

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Load["./tests/images/pose.jpg"]
2+
Detect["person"]
3+
Breakpoint[]
4+
Count[]
5+
Say[]

0 commit comments

Comments
 (0)