Skip to content

Commit

Permalink
Add info for cmd args 📚
Browse files Browse the repository at this point in the history
  • Loading branch information
Freymaurer committed Dec 1, 2023
1 parent a0dba62 commit 68d8740
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Fable.Pyxpecto can be used to run tests in **Python**, **JavaScript**, **TypeScr
- [Pending](#pending)
- [Focused](#focused)
- [Sequential Tests](#sequential-tests)
- [Command Line Args](#command-line-arguments)
- [Install](#install)
- [Run Tests](#running-tests)
- [Pyxpecto Only](#language-agnostic)
Expand Down Expand Up @@ -86,6 +87,35 @@ Actually all tests run with this library will be sequential. The function is onl

💬 Help wanted. I currently have a prototype implementation for parallel tests on a branch. But it breaks collecting run-tests in .NET.

### Command Line Arguments

Running any py/ts/js/net code from pyxpecto can be customized with flags:

```
Fable.Pyxtpecto (F#)
Author: Kevin Frey
Usage:
(python/node/npx ts-node/dotnet run) <path_to_entrypoint> [options]
Options:
--fail-on-focused-tests Will exit with ExitCode 4 if run with this argument
and focused tests are found.
--silent Only start and result print. No print for each test.
```

These can also be given via:

```fsharp
[<EntryPoint>]
let main argv =
!!Pyxpecto.runTests [|
ConfigArg.FailOnFocused
ConfigArg.Silent
|] all
```

## Install

From [Nuget](https://www.nuget.org/packages/Fable.Pyxpecto) with:
Expand Down

0 comments on commit 68d8740

Please sign in to comment.