Commit Graph

9 Commits

Author SHA1 Message Date
Gregory Schier
3883dc6feb
POC for Unit Test UI (#2315)
* Start working on insomnia-testing package to generate Mocha code

* Moved some things around

* Integration tests and ability to run multiple files

* Fix integration tests

* Rename runSuite to runMochaTests

* Add types for test results

* Fix lint errors

* Play with Chia assertions

* insomnia and chai globals, plus a bunch of improvements

* Stub chai and axios Flow types

* Ability to reference requests by ID

* Fix chai flow-typed location

* Address PR comments (small tweaks)

* Basic UI going

* Lots and lots and lots

* Pretty-much done with the unit test UI

* Minor CSS tweak

* Activity bar triple toggle and more

* Minor tweak

* Unit Test and Suite deletion

* Bump Designer version

* Fix eslint stuff

* Fix insomnia-testing tests

* Fix tests

* lib@2.2.9

* Remove tests tab from response pane

* Hook up Insomnia networking

* Fix linting

* Bump version for alpha

* Remove extra ActivityToggleSwitch

* Remove unused import

* Add test:pre-release script that excludes CLI tests

* Less repetition

* Clean some things up

* Tweaks after self-cr

* Undo request ID tag

* Swap out switch for new activity toggle component

* Extra check

* Remove dead code

* Delete dead test

* Oops, revert example code

* PR feedback

* More PR comment addresses
2020-07-01 14:17:14 -07:00
Gregory Schier
45861b6393
POC to get Insomnia networking available outside of app (#2329)
* Hacked insomnia lib package to get Insomnia's networking in tests

* Some small tweaks

* Got it mostly working

* Tweak

* Fix

* Fix pkg

* Fix some things

* Add comment

* Comment out log

* Some tweaks after doing a self code review

* Fix test

* Update app name for `insomnia-send-request`

* Update package-lock

* Update package-locks

* Fix tests

* Add gitignore

* Fix tests hopefully

* Fix accidental dep deletions

* Fix tests again

* Mock for all tests

* Update tests again

* Don't compile for Electron for tests

* Update release scripts to disable tests
2020-06-30 12:36:15 -07:00
Opender Singh
7d3660c8f0
CLI linting + exit codes (#2318) 2020-06-30 12:00:33 +12:00
Opender Singh
85860ce031
Add unit testing to CLI, configurable Mocha reporter (#2311) 2020-06-30 09:54:12 +12:00
Gregory Schier
55be1de2bd lib@2.2.10 2020-06-29 10:51:46 -07:00
Gregory Schier
c0931d94b7
Update test fixtures and support sendRequest() callback (#2325)
* Update test fixtures and allow sendRequest() callback for testing

* Change runTests() to take in test src instead of a file

* Fix looping

* Fix tests and write temp test files into folder

* Fix Flow type for mocha
2020-06-29 10:40:15 -07:00
Gregory Schier
85f4bf31be Update packages from lib@2.2.9 publish 2020-06-25 15:50:39 -07:00
Opender Singh
1d10a42851
Upgrade husky and eslint (#2306)
* hopefully

* Update

* Update

* Fix

* Update
2020-06-19 05:48:09 +12:00
Gregory Schier
5220d34a3a
Unit Test Generation and Running PoC (#2232)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2020-06-18 12:21:52 +12:00