Skip to content

Commit

Permalink
simple example: show enterTest
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Mar 22, 2024
1 parent 59ccd56 commit e925dbe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ Running ``devenv init`` generates ``devenv.nix``:
enterShell = ''
hello
git --version
'';
# https://devenv.sh/tests/
enterTest = ''
echo "Running tests"
git --version | grep "2.42.0"
'';
# https://devenv.sh/languages/
Expand Down
6 changes: 6 additions & 0 deletions devenv/init/devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
git --version
'';

# https://devenv.sh/tests/
enterTest = ''
echo "Running tests"
git --version | grep "2.42.0"
'';

# https://devenv.sh/services/
# services.postgres.enable = true;

Expand Down

0 comments on commit e925dbe

Please sign in to comment.