Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ do otherwise. Ignore those examples; follow this rule.
```bash
just clean # Clean all build artifacts (build/, obj/, bin/, .fable/)
just build # Build the project
just test-python # Run Python tests
just test # Run tests (compile F# to Python and run with pytest)
just restore # Restore .NET and paket dependencies
just example-flask # Build and run Flask example
just example-fastapi # Build and run FastAPI example
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ just setup
```sh
just # Show all available commands
just build # Build F# to Python
just test # Run all tests (native .NET and Python)
just test-python # Run only Python tests
just test # Run tests (compile F# to Python and run with pytest)
just format # Format code with Fantomas
just pack # Create NuGet package
just clean # Clean build artifacts
Expand Down
16 changes: 2 additions & 14 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ src_path := "src"
test_path := "test"

# Development mode: use local Fable repo instead of dotnet tool
# Usage: just dev=true test-python
# Usage: just dev=true test
dev := "false"
fable_repo := justfile_directory() / "../fable/python-ex-not-defined"
fable := if dev == "true" { "dotnet run --project " + fable_repo / "src/Fable.Cli" + " --" } else { "dotnet fable" }
Expand Down Expand Up @@ -40,20 +40,8 @@ build: clean
run: clean
dotnet build {{src_path}}

# Run all tests (native .NET and Python)
# Run tests (compile F# tests to Python and run with pytest)
test: build
@echo "Running native .NET tests..."
dotnet run --project {{test_path}}
@echo "Compiling and running Python tests..."
{{fable}} {{test_path}} --lang Python --outDir {{build_path}}/tests
uv run pytest {{build_path}}/tests

# Run only native .NET tests
test-native:
dotnet run --project {{test_path}}

# Run only Python tests (requires build first)
test-python: build
{{fable}} {{test_path}} --lang Python --outDir {{build_path}}/tests
uv run pytest {{build_path}}/tests

Expand Down
3 changes: 0 additions & 3 deletions paket.dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ group Test

nuget FSharp.Core
nuget Fable.Core >= 5.0.0 lowest_matching: true
nuget Microsoft.NET.Test.Sdk ~> 16
nuget xunit ~> 2
nuget xunit.runner.visualstudio ~> 2

group Examples
source https://api.nuget.org/v3/index.json
Expand Down
28 changes: 0 additions & 28 deletions paket.lock
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,3 @@ NUGET
Fable.Core (5.0)
FSharp.Core (>= 4.7.2)
FSharp.Core (11.0.100)
Microsoft.CodeCoverage (18.4)
Microsoft.NET.Test.Sdk (16.11)
Microsoft.CodeCoverage (>= 16.11)
Microsoft.TestPlatform.TestHost (>= 16.11)
Microsoft.TestPlatform.ObjectModel (18.4)
System.Reflection.Metadata (>= 8.0)
Microsoft.TestPlatform.TestHost (18.4)
Microsoft.TestPlatform.ObjectModel (>= 18.4)
Newtonsoft.Json (>= 13.0.3)
Newtonsoft.Json (13.0.4)
System.Collections.Immutable (10.0.6)
System.Reflection.Metadata (10.0.6)
System.Collections.Immutable (>= 10.0.6)
xunit (2.9.3)
xunit.analyzers (>= 1.18)
xunit.assert (>= 2.9.3)
xunit.core (2.9.3)
xunit.abstractions (2.0.3)
xunit.analyzers (1.27)
xunit.assert (2.9.3)
xunit.core (2.9.3)
xunit.extensibility.core (2.9.3)
xunit.extensibility.execution (2.9.3)
xunit.extensibility.core (2.9.3)
xunit.abstractions (>= 2.0.3)
xunit.extensibility.execution (2.9.3)
xunit.extensibility.core (2.9.3)
xunit.runner.visualstudio (2.8.2)
5 changes: 0 additions & 5 deletions test/paket.references
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,3 @@ group Test

FSharp.Core
Fable.Core

Microsoft.NET.Test.Sdk

xunit
xunit.runner.visualstudio
Loading