Skip to content

Commit

Permalink
Upgrade unit testing infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
dphfox committed Apr 15, 2024
1 parent 2c53283 commit bbb7a57
Show file tree
Hide file tree
Showing 55 changed files with 849 additions and 1,471 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# These are supported funding model platforms

github: [Elttob]
github: [dphfox]
108 changes: 0 additions & 108 deletions fusion.ovpn

This file was deleted.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "@elttob/fusion",
"version": "0.1.0",
"name": "@dphfox/fusion",
"version": "0.3.0",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/elttob/Fusion.git"
"url": "https://github.com/dphfox/Fusion.git"
},
"contributors": [
"elttob"
"dphfox"
],
"bugs": {
"url": "https://github.com/elttob/Fusion/issues"
"url": "https://github.com/dphfox/Fusion/issues"
}
}
2 changes: 1 addition & 1 deletion selene.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
std = "roblox+testez"
std = "roblox"

[rules]
# Too aggressive in tests
Expand Down
1 change: 1 addition & 0 deletions sourcemap.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"Fusion Test Runner","className":"DataModel","filePaths":["test-runner.project.json"],"children":[{"name":"ReplicatedStorage","className":"ReplicatedStorage","children":[{"name":"Fusion","className":"ModuleScript","filePaths":["src\\init.lua","default.project.json"],"children":[{"name":"Animation","className":"Folder","children":[{"name":"Spring","className":"ModuleScript","filePaths":["src\\Animation\\Spring.lua"]},{"name":"SpringScheduler","className":"ModuleScript","filePaths":["src\\Animation\\SpringScheduler.lua"]},{"name":"Tween","className":"ModuleScript","filePaths":["src\\Animation\\Tween.lua"]},{"name":"TweenScheduler","className":"ModuleScript","filePaths":["src\\Animation\\TweenScheduler.lua"]},{"name":"getTweenRatio","className":"ModuleScript","filePaths":["src\\Animation\\getTweenRatio.lua"]},{"name":"lerpType","className":"ModuleScript","filePaths":["src\\Animation\\lerpType.lua"]},{"name":"packType","className":"ModuleScript","filePaths":["src\\Animation\\packType.lua"]},{"name":"springCoefficients","className":"ModuleScript","filePaths":["src\\Animation\\springCoefficients.lua"]},{"name":"unpackType","className":"ModuleScript","filePaths":["src\\Animation\\unpackType.lua"]}]},{"name":"Colour","className":"Folder","children":[{"name":"Oklab","className":"ModuleScript","filePaths":["src\\Colour\\Oklab.lua"]},{"name":"sRGB","className":"ModuleScript","filePaths":["src\\Colour\\sRGB.lua"]}]},{"name":"External","className":"ModuleScript","filePaths":["src\\External.lua"]},{"name":"Instances","className":"Folder","children":[{"name":"Attribute","className":"ModuleScript","filePaths":["src\\Instances\\Attribute.lua"]},{"name":"AttributeChange","className":"ModuleScript","filePaths":["src\\Instances\\AttributeChange.lua"]},{"name":"AttributeOut","className":"ModuleScript","filePaths":["src\\Instances\\AttributeOut.lua"]},{"name":"Children","className":"ModuleScript","filePaths":["src\\Instances\\Children.lua"]},{"name":"Hydrate","className":"ModuleScript","filePaths":["src\\Instances\\Hydrate.lua"]},{"name":"New","className":"ModuleScript","filePaths":["src\\Instances\\New.lua"]},{"name":"OnChange","className":"ModuleScript","filePaths":["src\\Instances\\OnChange.lua"]},{"name":"OnEvent","className":"ModuleScript","filePaths":["src\\Instances\\OnEvent.lua"]},{"name":"Out","className":"ModuleScript","filePaths":["src\\Instances\\Out.lua"]},{"name":"Ref","className":"ModuleScript","filePaths":["src\\Instances\\Ref.lua"]},{"name":"applyInstanceProps","className":"ModuleScript","filePaths":["src\\Instances\\applyInstanceProps.lua"]},{"name":"defaultProps","className":"ModuleScript","filePaths":["src\\Instances\\defaultProps.lua"]}]},{"name":"InternalTypes","className":"ModuleScript","filePaths":["src\\InternalTypes.lua"]},{"name":"Logging","className":"Folder","children":[{"name":"logError","className":"ModuleScript","filePaths":["src\\Logging\\logError.lua"]},{"name":"logErrorNonFatal","className":"ModuleScript","filePaths":["src\\Logging\\logErrorNonFatal.lua"]},{"name":"logWarn","className":"ModuleScript","filePaths":["src\\Logging\\logWarn.lua"]},{"name":"messages","className":"ModuleScript","filePaths":["src\\Logging\\messages.lua"]},{"name":"parseError","className":"ModuleScript","filePaths":["src\\Logging\\parseError.lua"]}]},{"name":"Memory","className":"Folder","children":[{"name":"deriveScope","className":"ModuleScript","filePaths":["src\\Memory\\deriveScope.lua"]},{"name":"doCleanup","className":"ModuleScript","filePaths":["src\\Memory\\doCleanup.lua"]},{"name":"legacyCleanup","className":"ModuleScript","filePaths":["src\\Memory\\legacyCleanup.lua"]},{"name":"needsDestruction","className":"ModuleScript","filePaths":["src\\Memory\\needsDestruction.lua"]},{"name":"scopePool","className":"ModuleScript","filePaths":["src\\Memory\\scopePool.lua"]},{"name":"scoped","className":"ModuleScript","filePaths":["src\\Memory\\scoped.lua"]},{"name":"whichLivesLonger","className":"ModuleScript","filePaths":["src\\Memory\\whichLivesLonger.lua"]}]},{"name":"RobloxExternal","className":"ModuleScript","filePaths":["src\\RobloxExternal.lua"]},{"name":"State","className":"Folder","children":[{"name":"Computed","className":"ModuleScript","filePaths":["src\\State\\Computed.lua"]},{"name":"For","className":"ModuleScript","filePaths":["src\\State\\For.lua"]},{"name":"ForKeys","className":"ModuleScript","filePaths":["src\\State\\ForKeys.lua"]},{"name":"ForPairs","className":"ModuleScript","filePaths":["src\\State\\ForPairs.lua"]},{"name":"ForValues","className":"ModuleScript","filePaths":["src\\State\\ForValues.lua"]},{"name":"Observer","className":"ModuleScript","filePaths":["src\\State\\Observer.lua"]},{"name":"Value","className":"ModuleScript","filePaths":["src\\State\\Value.lua"]},{"name":"isState","className":"ModuleScript","filePaths":["src\\State\\isState.lua"]},{"name":"peek","className":"ModuleScript","filePaths":["src\\State\\peek.lua"]},{"name":"updateAll","className":"ModuleScript","filePaths":["src\\State\\updateAll.lua"]}]},{"name":"Types","className":"ModuleScript","filePaths":["src\\Types.lua"]},{"name":"Utility","className":"Folder","children":[{"name":"Contextual","className":"ModuleScript","filePaths":["src\\Utility\\Contextual.lua"]},{"name":"isSimilar","className":"ModuleScript","filePaths":["src\\Utility\\isSimilar.lua"]},{"name":"xtypeof","className":"ModuleScript","filePaths":["src\\Utility\\xtypeof.lua"]}]}]}]},{"name":"ServerScriptService","className":"ServerScriptService","children":[{"name":"FusionTest","className":"Script","filePaths":["test\\init.server.lua"],"children":[{"name":"Spec","className":"Folder","children":[{"name":"Animation","className":"Folder","children":[{"name":"springCoefficients.spec","className":"ModuleScript","filePaths":["test\\Spec\\Animation\\springCoefficients.spec.lua"]}]},{"name":"Instances","className":"Folder","children":[{"name":"Attribute.spec","className":"ModuleScript","filePaths":["test\\Spec\\Instances\\Attribute.spec.lua"]},{"name":"AttributeChange.spec","className":"ModuleScript","filePaths":["test\\Spec\\Instances\\AttributeChange.spec.lua"]},{"name":"AttributeOut.spec","className":"ModuleScript","filePaths":["test\\Spec\\Instances\\AttributeOut.spec.lua"]},{"name":"Children.spec","className":"ModuleScript","filePaths":["test\\Spec\\Instances\\Children.spec.lua"]},{"name":"Hydrate.spec","className":"ModuleScript","filePaths":["test\\Spec\\Instances\\Hydrate.spec.lua"]},{"name":"New.spec","className":"ModuleScript","filePaths":["test\\Spec\\Instances\\New.spec.lua"]},{"name":"OnChange.spec","className":"ModuleScript","filePaths":["test\\Spec\\Instances\\OnChange.spec.lua"]},{"name":"OnEvent.spec","className":"ModuleScript","filePaths":["test\\Spec\\Instances\\OnEvent.spec.lua"]},{"name":"Out.spec","className":"ModuleScript","filePaths":["test\\Spec\\Instances\\Out.spec.lua"]},{"name":"Ref.spec","className":"ModuleScript","filePaths":["test\\Spec\\Instances\\Ref.spec.lua"]},{"name":"applyInstanceProps.spec","className":"ModuleScript","filePaths":["test\\Spec\\Instances\\applyInstanceProps.spec.lua"]}]},{"name":"Memory","className":"Folder","children":[{"name":"doCleanup.spec","className":"ModuleScript","filePaths":["test\\Spec\\Memory\\doCleanup.spec.lua"]},{"name":"scoped.spec","className":"ModuleScript","filePaths":["test\\Spec\\Memory\\scoped.spec.lua"]}]},{"name":"State","className":"Folder","children":[{"name":"Computed.spec","className":"ModuleScript","filePaths":["test\\Spec\\State\\Computed.spec.lua"]},{"name":"For.spec","className":"ModuleScript","filePaths":["test\\Spec\\State\\For.spec.lua"]},{"name":"ForKeys.spec","className":"ModuleScript","filePaths":["test\\Spec\\State\\ForKeys.spec.lua"]},{"name":"ForPairs.spec","className":"ModuleScript","filePaths":["test\\Spec\\State\\ForPairs.spec.lua"]},{"name":"ForValues.spec","className":"ModuleScript","filePaths":["test\\Spec\\State\\ForValues.spec.lua"]},{"name":"Observer.spec","className":"ModuleScript","filePaths":["test\\Spec\\State\\Observer.spec.lua"]},{"name":"Value.spec","className":"ModuleScript","filePaths":["test\\Spec\\State\\Value.spec.lua"]},{"name":"updateAll.spec","className":"ModuleScript","filePaths":["test\\Spec\\State\\updateAll.spec.lua"]}]},{"name":"Utility","className":"Folder","children":[{"name":"Contextual.spec","className":"ModuleScript","filePaths":["test\\Spec\\Utility\\Contextual.spec.lua"]},{"name":"isSimilar.spec","className":"ModuleScript","filePaths":["test\\Spec\\Utility\\isSimilar.spec.lua"]}]}]},{"name":"SpecExternal","className":"ModuleScript","filePaths":["test\\SpecExternal.lua"]},{"name":"TestEZ","className":"ModuleScript","filePaths":["test\\TestEZ\\init.lua"],"children":[{"name":"Context","className":"ModuleScript","filePaths":["test\\TestEZ\\Context.lua"]},{"name":"Expectation","className":"ModuleScript","filePaths":["test\\TestEZ\\Expectation.lua"]},{"name":"ExpectationContext","className":"ModuleScript","filePaths":["test\\TestEZ\\ExpectationContext.lua"]},{"name":"LifecycleHooks","className":"ModuleScript","filePaths":["test\\TestEZ\\LifecycleHooks.lua"]},{"name":"Reporters","className":"Folder","children":[{"name":"TeamCityReporter","className":"ModuleScript","filePaths":["test\\TestEZ\\Reporters\\TeamCityReporter.lua"]},{"name":"TextReporter","className":"ModuleScript","filePaths":["test\\TestEZ\\Reporters\\TextReporter.lua"]},{"name":"TextReporterQuiet","className":"ModuleScript","filePaths":["test\\TestEZ\\Reporters\\TextReporterQuiet.lua"]}]},{"name":"TestBootstrap","className":"ModuleScript","filePaths":["test\\TestEZ\\TestBootstrap.lua"]},{"name":"TestEnum","className":"ModuleScript","filePaths":["test\\TestEZ\\TestEnum.lua"]},{"name":"TestPlan","className":"ModuleScript","filePaths":["test\\TestEZ\\TestPlan.lua"]},{"name":"TestPlanner","className":"ModuleScript","filePaths":["test\\TestEZ\\TestPlanner.lua"]},{"name":"TestResults","className":"ModuleScript","filePaths":["test\\TestEZ\\TestResults.lua"]},{"name":"TestRunner","className":"ModuleScript","filePaths":["test\\TestEZ\\TestRunner.lua"]},{"name":"TestSession","className":"ModuleScript","filePaths":["test\\TestEZ\\TestSession.lua"]}]},{"name":"TestVars","className":"ModuleScript","filePaths":["test\\TestVars.lua"]}]}]}]}
2 changes: 1 addition & 1 deletion src/Types.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export type Scope<Constructors> = {unknown} & Constructors
-- An object which uses a scope to dictate how long it lives.
export type ScopedObject = {
scope: Scope<unknown>?,
destroy: () -> ()
destroy: (any) -> ()
}

-- Script-readable version information.
Expand Down
Loading

0 comments on commit bbb7a57

Please sign in to comment.