Skip to content

Commit d8ab696

Browse files
committed
Move test code into a separate directory
Closes #15
1 parent 116b622 commit d8ab696

13 files changed

+19
-5
lines changed

Docs/Modules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ All modules are grouped into namespaces, much like the standard library:
126126
[Table.NumberColumns]: ../Modules/Table.NumberColumns.pq
127127
[Table.PromoteHeadersNonEmpty]: ../Modules/Table.PromoteHeadersNonEmpty.pq
128128
[Table.UseLastValid]: ../Modules/Table.UseLastValid.pq
129-
[Tests.ConcatenateRows]: ../Modules/Tests.ConcatenateRows.pq
130-
[Tests.UseLastValid]: ../Modules/Tests.UseLastValid.pq
129+
[Tests.ConcatenateRows]: ../Tests/Tests.ConcatenateRows.pq
130+
[Tests.UseLastValid]: ../Tests/Tests.UseLastValid.pq
131131
[UnitTest.Assert]: ../Modules/UnitTest.Assert.pq
132132
[UnitTest.Constants]: ../Modules/UnitTest.Constants.pq
133133
[UnitTest.Discover]: ../Modules/UnitTest.Discover.pq

Docs/UnitTesting_with_Facts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ described previously in this article).
7575
[Fact]: ../Modules/UnitTest.Fact.pq
7676
[Facts.Summarize]: ../Modules/UnitTest.Facts.Summarize.pq
7777
[UnitTest.Discover]: ../Modules/UnitTest.Discover.pq
78-
[sample test]: ../Modules/Tests.MicrosoftUnitTestDemo.pq
78+
[sample test]: ../Tests/Tests.MicrosoftUnitTestDemo.pq

LibPQPath-sample.pq

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ LibPQPath:
1010
[
1111
Local = {
1212
"C:\ExtractLocation\LibPQ\Modules",
13-
"D:\ExtractLocation\LibPQ\Modules"
13+
"C:\ExtractLocation\LibPQ\Tests",
14+
"D:\ExtractLocation\LibPQ\Modules",
15+
"D:\ExtractLocation\LibPQ\Tests"
1416
},
1517
Web = {
1618
"https://raw.githubusercontent.com/sio/LibPQ/master/Modules/",
1719
"https://raw.githubusercontent.com/tycho01/pquery/master/"
1820
}
19-
]
21+
]

Tests/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Unit tests for LibPQ
2+
3+
This directory contains test suites for LibPQ.
4+
5+
To run these tests:
6+
7+
- [Install LibPQ](../README.md#installation-and-usage)
8+
- Make sure this directory is listed in `LibPQPath`
9+
- Execute `LibPQ("UnitTest.Discover")()`
10+
11+
To learn more about unit testing in Power Query refer to
12+
[LibPQ documentation](../Docs/UnitTesting.md).
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)