Commit Graph

13 Commits

Author SHA1 Message Date
Jongwook Choi
276881193d feat(pytest): exception breakpoints when running with dap strategy (#25)
When running neotest with the DAP strategy (nvim-dap), e.g.

    require("neotest").run.run({ strategy = "dap" })

we make the pydebug debugger stop at "exception breakpoints"
where the exception is thrown out of a pytest method.

This will be very helpful for users to debug failing unit tests.
2022-11-02 09:36:05 +00:00
Rónán Carrigan
ba7069a030 fix(pytest): don't reverse namespaces
See #26
2022-10-31 14:14:52 +00:00
Jongwook Choi
2dc9c95fe9 refactor(pytest): PytestNeotestAdapter (#24)
Having `NeotestResultCollector` (a pytest plugin) as a inner local
class would make the code a bit difficult to read due to quite much
indentation. This commit does refactoring on NeotestResultCollector
to make it a module-level class with a reference to NeotestAdapter.

This refactoring would make easier adding more pytest plugins
(e.g., debugger integration) in the future.

There should be no changes in behaviors.
2022-10-29 13:23:40 +01:00
Rónán Carrigan
8aca335334 fix(pytest): use rootdir instead of rootpath
See #21
2022-10-20 08:03:18 +01:00
Rónán Carrigan
20df51e06f feat: mark deselected tests as skipped
See #13
2022-08-03 22:29:45 +01:00
Rónán Carrigan
aaf83100b6 feat: streamed results 2022-07-23 15:02:35 +01:00
Rónán Carrigan
4d915fbefd fix(unittest): handle extra args 2022-07-02 09:58:14 +01:00
Rónán Carrigan
16ed9f6079 fix(pytest): handle xfail exc repr
See #5
2022-06-09 21:15:17 +01:00
Steven Arcangeli
c09c4136bb fix(unittest): correct args for tests/classes/files (#2)
* fix: unittest adapter can run specific tests/groups/files

* fix: running tests at the directory level

* refactor: tidy id_to_unittest_args and remove print
2022-06-08 20:58:05 +01:00
Steven Arcangeli
fd75c18c14 fix: record skipped and error test results (#1) 2022-06-08 08:00:53 +01:00
Rónán Carrigan
42d6488760 feat: cyan colour for skipped tests 2022-02-28 09:06:55 +00:00
Rónán Carrigan
a02e6d5acb feat: async build_spec 2022-02-06 21:18:33 +00:00
Rónán Carrigan
b162ba1b42 feat: init commit 2022-01-02 23:15:23 +00:00