Skip to content

Commit

Permalink
Merge pull request #376 from stepchowfun/web-integration-test-message
Browse files Browse the repository at this point in the history
Add some helpful messages to the HTML for the web integration tests
  • Loading branch information
stepchowfun authored Jan 8, 2022
2 parents e234b57 + 165bbdd commit 132e4be
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 13 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.8.2] - 2022-01-08

### Changed
- The generated Rust and TypeScript code now features exported utility functions near the beginning of the file for better visibility.

## [0.8.1] - 2022-01-07

### Changed
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "typical"
version = "0.8.1"
version = "0.8.2"
authors = ["Stephan Boyer <[email protected]>"]
edition = "2021"
description = "Algebraic data types for data interchange."
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# License

Copyright 2021 Stephan Boyer
Copyright 2022 Stephan Boyer

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
37 changes: 27 additions & 10 deletions integration_tests/typescript-web/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,34 @@ import runDegenerate from './degenerate';
import runSchemaEvolution from './schema-evolution';
import { verifyOmnifile } from './assertions';

console.log('Running circular dependency integration test\u2026\n');
runCircularDependency();
const startingParagraph = document.createElement('p');
startingParagraph.innerHTML = 'Running integration tests\u2026';
document.body.appendChild(startingParagraph);

console.log('\nRunning comprehensive integration test\u2026\n');
runComprehensive();
try {
console.log('Running circular dependency integration test\u2026\n');
runCircularDependency();

console.log('\nRunning degenerate integration test\u2026\n');
runDegenerate();
console.log('\nRunning comprehensive integration test\u2026\n');
runComprehensive();

console.log('\nRunning schema evolution integration test\u2026\n');
runSchemaEvolution();
console.log('\nRunning degenerate integration test\u2026\n');
runDegenerate();

console.log('\nVerifying omnifile\u2026\n');
verifyOmnifile();
console.log('\nRunning schema evolution integration test\u2026\n');
runSchemaEvolution();

console.log('\nVerifying omnifile\u2026\n');
verifyOmnifile();
} catch (e) {
const failureParagraph = document.createElement('p');
failureParagraph.innerHTML =
'Integration tests failed. See the console for details.';
document.body.appendChild(failureParagraph);

throw e;
}

const successParagraph = document.createElement('p');
successParagraph.innerHTML = 'Integration tests passed.';
document.body.appendChild(successParagraph);

0 comments on commit 132e4be

Please sign in to comment.