Skip to content

projects(Teamtype): use demo module in tests without examples#1939

Open
Aman16102000 wants to merge 1 commit intongi-nix:mainfrom
Aman16102000:fix-issue-1491-teamtype-demo-tests
Open

projects(Teamtype): use demo module in tests without examples#1939
Aman16102000 wants to merge 1 commit intongi-nix:mainfrom
Aman16102000:fix-issue-1491-teamtype-demo-tests

Conversation

@Aman16102000
Copy link

Fixes #1491

Comment on lines -37 to -41
tests.basic.module = import ./programs/teamtype/tests/basic.nix args;
tests.basic.problem.broken.reason = ''
Needs a self-hosted relay server to work non-interactively (without internet).
Requires: https://github.com/teamtype/teamtype/issues/344
'';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-hosted relays still don't exist AFAIK, so the test shouldn't be unbroken. Please revert this.

sources.modules.ngipkgs
sources.modules.programs.teamtype
sources.examples.Teamtype."Enable Teamtype"
sources.demos.Teamtype.shell
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A demo can be either shell or vm for any given project. It's a bit redundant to have to have to explicitly specify this. Instead, I think this makes more sense: sources.demos.Teamtype

Comment on lines +82 to +87
demos = lib.mapAttrs (
_: project: lib.filterAttrs (_: v: v != null) {
vm = project.nixos.demo.vm.module or null;
shell = project.nixos.demo.shell.module or null;
}
) self.hydrated-projects;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already composed in overview/demo/default.nix. We could just expose raw-demos and pass that to sources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Use demo module inside demo tests without needing examples

2 participants

Comments